package someTestExcemple.thread;

//取钱线程
public class DrawThread implements Runnable {
    private Account account;
    private double drawAmount;

    public DrawThread(Account account, double drawAmount) {
        this.account = account;
        this.drawAmount = drawAmount;
    }

    @Override
    public void run() {
        //取钱
        this.account.drawAmount(drawAmount);
    }
}
